home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Technotools
/
Technotools (Chestnut CD-ROM)(1993).ISO
/
lang_oth
/
awkbyte
/
phdata.awk
< prev
Wrap
Text File
|
1991-03-25
|
418b
|
11 lines
# this is the AWK program phdata.awk (I use Rob Duff's dos version of AWK)
# to run on datacma.asc, enter:
# awk -F, phdata.awk datacma.asc
# see p 246 in the April 91 BYTE mag for basic version
# and context.
$5 ~ /(phone|Phone)/ {y = substr($2,7,2)
year[y] = year[y]+$3 }
END {for (i in year)
print "total for 19" i,"was", year[i] }